package org.example.springcloud.service;

import org.example.springcloud.vo.ResultVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description:
 * @Author: y
 * @CreateDate: 8/2/21 9:34 AM
 * @Version: 1.0
 */
@FeignClient(value = "seata-storage-service")
public interface StorageService {
    @PostMapping(value = "/storage/decrease")
    ResultVO decrease(@RequestParam("productId") Long productId, @RequestParam("count") Integer count);
}